<script setup lang='ts'>
// import { link } from 'fs';

defineProps<{


    list: {
        id: string,
        createdDate: string,
        name: string,
        place: string,

        link: {
            herf: string,
            method: string,
        }
    }[]

}>()


</script>


<template>

    <div v-for="item in list" class="item-detail">


        <a href="">

            <img src="https://img3.mukewang.com/5cb44aad0923606a06000338-240-180.png">
        </a>
        <div class="content">
            <a href="" class="item-title">
                {{ item.name }}
            </a>
            <p>{{ item.place }}</p>
            
                
                <p>    {{ item.createdDate }}</p>
           

        </div>



    </div>


</template>


<style lang='scss' scoped>
.item-detail {
    display: flex;

}

a {
    text-decoration: none;
    cursor: pointer;
    margin-right: 32px;
}

img {
    width: 120px;
    height: 90px;
    border-radius: 4px;

}

.item-title {
    width: 500px;
    font-size: 16px;
    line-height: 32px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
    margin-right: 0;
}

.content {
    width: 450px;
}

p {
    max-height: 48px;
    overflow: hidden;
    color: #4d555d;
    font-size: 12px;
    line-height: 24px;
}
</style>